package com.chance.cc.crawler.prod.command.schedule.vm.pcauto;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.pcauto.geely.PcAutoForumGeelyTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.pcauto.realtime.PcAutoArticleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.pcauto.realtime.PcAutoForumReleaseCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.pcauto.realtime.PcAutoPraiseCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.pcauto.realtime.PcAutoVideoCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;
import org.junit.Test;

/**
 * @author lt
 * @version 1.0
 * @date 2020-12-09 16:15:28
 * @email okprog@sina.com
 */
public class PCAutoCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {


    public static void main(String[] args) {
//        autoHomeCommonCrawlerScheduleJob(PcAutoArticleCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(PcAutoForumReleaseCrawlerSchedulerJob.pcAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(PcAutoPraiseCrawlerSchedulerJob.pcAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(PcAutoVideoCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(PcAutoArticleTraceCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(PcAutoForumReplyCrawlerSchedulerJob.pcAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(PcAutoPraiseTraceCrawlerSchedulerJob.pcAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(PcAutoVideoTraceCrawlerSchedulerJob.bitAutoScheduler());

        //吉利项目
        //autoHomeCommonCrawlerScheduleJob(PcAutoForumGeelyReleaseCrawlerSchedulerJob.pcAutoScheduler());
        autoHomeCommonCrawlerScheduleJob(PcAutoForumGeelyTraceCrawlerSchedulerJob.pcAutoScheduler());
    }

    public static void autoHomeCommonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_6);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_6);
    }

    @Test
    public void delJob(){
        delCrawlerScheduleJob(PcAutoArticleCrawlerSchedulerJob.bitAutoScheduler());
        delCrawlerScheduleJob(PcAutoForumReleaseCrawlerSchedulerJob.pcAutoScheduler());
        delCrawlerScheduleJob(PcAutoPraiseCrawlerSchedulerJob.pcAutoScheduler());
        delCrawlerScheduleJob(PcAutoVideoCrawlerSchedulerJob.bitAutoScheduler());
    }

}
